﻿#ifndef UNREALIRCD_UTIL_H
#define UNREALIRCD_UTIL_H
int is_digist_string(char *str,int length);
int is_empty_string(char *str,int length);
int hex2dec(char c);
char *urldecode(const char *url,int length);
char *int_to_string(const int i);
char *int64_to_string(const int64_t i);
char *random_digist(int n);
char * getCurrectTimeStamp();
char * getYearMonthDayTimeChar(int64_t timestamp);
char * sha256Hex(const char* str);
char * hmacSha256(const char * key,int keyLength,const char * input,int inputLength,int *resultLength);
char * HexEncode(const char * input,int inputLength);




#endif